package com.molichuxing.gateway.bff.payment.entity.request.modify;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import javax.validation.constraints.NotNull;

import com.molichuxing.framework.dto.RequestRootDto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 智能终端支付结果vo
 * 
 * @author zoumingyu
 * @date 2019年10月31日
 *
 */
@Data
public class AioPayResultModifyVo extends RequestRootDto {
	private static final long serialVersionUID = -2631368523468742514L;

	@ApiModelProperty(value = "是否支付成功(0：失败，1：成功)", required = true)
	private Integer isSuccess;

	@ApiModelProperty(value = "付款流水号", required = true)
	private String payNumber;
	
	@ApiModelProperty(value = "付款金额", required = true)
	private BigDecimal payAmount;
	
	@ApiModelProperty(value = "支付时间", required = false)
	private LocalDateTime payTime = LocalDateTime.now();

	@ApiModelProperty(value = "第三方流水号", required = false)
	private String thirdPayNumber;
	
	@ApiModelProperty(value = "签名", required = true)
	private String sign;

	@ApiModelProperty(value = "支付平台返回的结果序列化后的json", required = true)
	private String payResultJson;
	
	@ApiModelProperty(value = "商户号", required = true)
	private String merchantCode;

	@ApiModelProperty(value = "pos编号", required = true)
	private String posSn;
	
	@ApiModelProperty(value = "支付方式( 11：智能终端-微信， 12：智能终端-支付宝， 13：智能终端-pos机，14：智能终端-密码键盘，21：微信-H5， 22：微信-APP，23：微信-公众号，24：微信-扫码，25：微信-小程序，31：支付宝-H5，32：支付宝-APP，41:线下支付，51：银联-H5，52：银联-APP)", required = true)
	@NotNull(message = "支付方式不能为空")
	private Integer payWay;
	
	@ApiModelProperty(value = "cpu", required = false, hidden = true)
	private String cpu;
}
